<?php 
$startTime = microtime(true);
error_reporting(E_ALL &~ E_NOTICE);
define('IN_PISCES',true);

if (version_compare(PHP_VERSION, '6.0.0-dev', '<') && get_magic_quotes_gpc())
{
	$in = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
	while (list ($k, $v) = each($in))
	{
		foreach ($v as $key => $val)
		{
			if (! is_array($val))
			{
				$in[$k][$key] = stripslashes($val);
				continue;
			}
			$in[] = &$in[$k][$key];
		}
	}
	unset($in);
}
date_default_timezone_set('Etc/GMT-8');

$lotusHome = dirname(__FILE__).'/pisces/framework/';

include $lotusHome . 'Lotus.php';

$lotus = new Lotus();

$lotus->option['proj_dir'] = dirname(__FILE__) . '/pisces/code/';

$lotus->option['app_dir'] = dirname(__FILE__) . '/pisces/code/app/';

$lotus->option['app_name'] = 'frontend';

$lotus->option['load_function'] = true;
$lotus->option['runtime_filemap'] = true;

$lotus->devMode = true;

$lotus->init();